package com.xiyou.luckdraw.common.utils;

import org.apache.shiro.crypto.hash.SimpleHash;

/**
 * @ClassName: MD5Utils
 * @Description:
 * @author: limingxing
 * @Date: 2019-10-08 16:55
 */
public class MD5Utils {

    public static String encode(String key, String salt) {
        return new SimpleHash("MD5", key, salt, key.hashCode() % 1024).toHex();
    }
}
